<title>数据管理</title>
<div class="layui-card layadmin-header">
	<div class="layui-breadcrumb">
		<a lay-href="">主页</a>
		<a><cite>数据管理</cite></a>
		<a><cite>数据列表</cite></a>
	</div>
</div>

<div class="layui-fluid">
	<div class="layui-card">
		<!-- 检索 -->
		<div class="layui-form layui-card-header layuiadmin-card-header-auto manageDataSearchForm"
			 lay-filter="manageDataPage">
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">商品名称</label>
					<div class="layui-input-block">
						<input autocomplete="off" class="layui-input searchField" name="name" operator="LIKE" placeholder="请输入登录名"
							   render="tag" type="text">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">店铺名称</label>
					<div class="layui-input-block">
						<input autocomplete="off" class="layui-input searchField" name="shop_name" operator="LIKE" placeholder="请输入登录名"
							   render="tag" type="text">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">来源</label>
					<div class="layui-input-block">
						<select name="source" lay-search>
							<option value="0"></option>
							<option value="1">淘宝</option>
							<option value="2">京东</option>
							<option value="3">抖音</option>
							<option value="4">拼多多</option>
						</select>
					</div>
				</div>
				<div class="layui-inline">
					<button class="layui-btn layuiadmin-btn-admin" lay-filter="manageDataSearch" lay-submit>
						<i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
					</button>
				</div>
			</div>
		</div>

		<div class="layui-card-body">
			<div style="padding-bottom: 10px;">
				<script id="manageDataToolBar" type="text/html">
					{{# if(common.checkAuth("del")){ }}
					<button class="layui-btn layuiadmin-btn-admin layui-btn-danger" lay-event="batchDel"><i
							class="layui-icon layui-icon-delete"></i>删除
					</button>
					{{# } }}
					{{# if(common.checkAuth("add")){ }}
					<button class="layui-btn layuiadmin-btn-admin" lay-event="add"><i
							class="layui-icon layui-icon-add-1"></i>添加
					</button>
					{{# } }}
				</script>
			</div>

			<!-- 表格 -->
			<table id="manageDataTable" lay-filter="manageDataTable"></table>
			<!-- 操作 -->
			<script id="manageDataTableTool" type="text/html">
				{{# if(common.checkAuth("edit")){ }}
				<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i
						class="layui-icon layui-icon-edit"></i>编辑</a>
				{{# } }}
				{{# if(common.checkAuth("del")){ }}
				<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i
						class="layui-icon layui-icon-delete"></i>删除</a>
				{{# } }}
			</script>
			<!-- 状态开关组件 -->
			<script id="manageDataStatus" type="text/html">
				<div class="layui-form-item">
					{{# if(d.status == '-1'){ }}
					<span class="red-color">未查询到信息</span>
					{{# } else if(d.status == '1') { }}
					<span class="blue-color">未查询</span>
					{{# } else if(d.status == '2') { }}
					<span class="green-color">仅查询溯源码</span>
					{{# } else if(d.status == '3') { }}
					<span class="green-color">仅查询二维码</span>
					{{# } else if(d.status == '4') { }}
					<span class="green-color">溯源码+二维码</span>
					{{# } }}
				</div>
			</script>
		</div>
	</div>
</div>

<script src="../web/res/js/manageData/Index/index.js"></script>
